


export function injectJsError() {
    //监听全局未捕获的报错
    window.addEventListener('error',function(event){ 
        console.log(event);
        let log = {
            "kind": "stability",//大类
            "type": "error",//小类
            "errorType": "jsError",//错误类型
            "url": event.filename,//访问哪个URL报错
            "message": event.message,//报错信息
        }
    })
}